﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Shared.Master" AutoEventWireup="true"
    CodeBehind="TradeLead.aspx.cs" Inherits="ESHOP.ADMIN.TradeLead" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentMain" runat="server">
    <form id="InrequirSell" runat="server">
    <div style="padding: 10px;">
        <h3>
            Searh TradeLead</h3>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <div class="listProduct">
            <asp:UpdatePanel ID="Updinfor" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                    <table border="0" cellpadding="0" cellspacing="0" id="id-form">
                        <tr>
                            <td style="text-align: right; padding-right: 5px;">
                                <th valign="top">
                                    Search Trade Lead:
                                </th>
                            </td>
                            <td style="width: 775px">
                                <asp:TextBox ID="txtSearch" runat="server" class="inp-form" Width="675px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: right; padding-right: 5px;">
                                <th valign="top">
                                    &nbsp;</th>
                            </td>
                            <td style="width: 775px">
                                <asp:Button ID="BtnSearch" runat="server" Height="33px" Text="Search" 
                                    onclick="BtnSearch_Click" />
                                <asp:Label ID="lbThongBao" runat="server"></asp:Label>
                            </td>
                        </tr>
                    </table>
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
        <asp:UpdatePanel ID="updategrid" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <h3>
                    List Trade Lead</h3>
                <div class="listProduct">
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                        <ContentTemplate>
                            <div class="listProduct">
                                <asp:GridView ID="GVProducts" runat="server" BackColor="#DEBA84" BorderColor="#DEBA84"
                                    BorderStyle="None" BorderWidth="1px" CellPadding="0" CellSpacing="0" EnableModelValidation="True"
                                    AutoGenerateColumns="False" Height="178px" Width="100%" OnRowCommand="GVProducts_RowCommand"
                                    AllowPaging="true" PageSize="10" OnPageIndexChanging="GVProducts_PageIndexChanging">
                                    <Columns>
                                        <asp:TemplateField HeaderStyle-CssClass="checkbox" HeaderText="STT" HeaderStyle-Width="7%">
                                            <ItemTemplate>
                                                <%# Container.DataItemIndex + 1%>
                                            </ItemTemplate>
                                            <ItemStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        
                                        <asp:TemplateField HeaderStyle-Width="15%" HeaderText="Tên công ty">
                                            <ItemTemplate>
                                                <%# Eval("CONGTY.TENCONGTY") %>
                                            </ItemTemplate>
                                            <ItemStyle Font-Bold="true" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderStyle-Width="10%" HeaderText="Quốc gia">
                                            <ItemTemplate>
                                                <%# Eval("QUOCGIA.TENQUOCGIA")%>
                                            </ItemTemplate>
                                            <ItemStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderStyle-Width="15%" HeaderText="Loại Sản Phẩm ">
                                            <ItemTemplate>
                                                <%# Eval("DANHMUC.TENDM")%>
                                            </ItemTemplate>
                                            <ItemStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderStyle-Width="15%" HeaderText="Ngày đăng ">
                                            <ItemTemplate>
                                                <%# String.Format("{0:dd/MM/yyyy}", Eval("NGAYDANG"))%>
                                            </ItemTemplate>
                                            <ItemStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderStyle-Width="6%" HeaderText="Options">
                                            <ItemTemplate>
                                                <asp:LinkButton ID="lnkBtndelete" runat="server" CommandArgument='<%# Eval("ID") %>'
                                                    CommandName='<%# Eval("ISHOW").ToString()=="True"?"DeActive":"Active" %>' Text='<%# Eval("ISHOW").ToString()=="True"?"DeActive":"Active" %>'></asp:LinkButton>
                                            </ItemTemplate>
                                            <ItemStyle Font-Bold="true" HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                    </Columns>
                                    <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
                                    <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
                                    <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
                                    <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
                                    <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
                                </asp:GridView>
                            </div>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                    <!--- Action box--->
                    <div id="actions-box">
                        <a href="" class="action-slider activated"></a>
                        <div id="actions-box-slider" style="display: none;">
                            <a href="" class="action-edit">Edit</a> <a href="" class="action-delete">Delete</a>
                        </div>
                        <div class="clear">
                        </div>
                    </div>
                    <!---end Action box --->
                    <!--Phan trang-->
                    <table border="0" cellpadding="0" cellspacing="0" id="paging-table">
                        <tbody>
                            <tr>
                                <td>
                                    <a href="" class="page-far-left"></a><a href="" class="page-left"></a>
                                    <div id="page-info">
                                        Page <strong>1</strong> / 15</div>
                                    <a href="" class="page-right"></a><a href="" class="page-far-right"></a>
                                </td>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <!--end phan trang-->
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    </form>
</asp:Content>
